package com.vhall.component.entity.vote.vo.console;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import java.io.Serializable;

/**
 * @author jingwen.li
 * @data Create in 2022/3/28 16:52
 */
@Data
public class VotePublishReqVO implements Serializable {

    @PositiveOrZero(message = "vote_id参数异常")
    @NotNull(message = "vote_id参数异常")
    @ParamName("vote_id")
    private Long voteId;

    @NotBlank(message = "token参数不能为空")
    @ParamName("token")
    private String token;
}
